package com.mbc.hr.exception;

@SuppressWarnings("serial")
public class NotEnoughLeaveBalanceException extends Exception {
	
	public static final int YEAR = 1;
	public static final int MONTH = 2;
	private int leavePeriod = YEAR;
	
	public NotEnoughLeaveBalanceException(String message){
		super(message);
	}
	
	public NotEnoughLeaveBalanceException(String message, int leavePeriod){
		super(message);
		this.leavePeriod = leavePeriod;
	}

	public int getLeavePeriod() {
		return leavePeriod;
	}

	public void setLeavePeriod(int leavePeriod) {
		this.leavePeriod = leavePeriod;
	}
}
